package com.gxa.util;

import com.gxa.dto.ResultDto;

public class Response {

    public static ResultDto success(){
        return new ResultDto(200, "success");
    }

    public static ResultDto success(String msg){
        return new ResultDto(200, msg);
    }

    public static ResultDto success(String msg, Object object){
        return new ResultDto(200, msg, object);
    }

    public static ResultDto success(Integer code, String msg, Object object){
        return new ResultDto(code, msg, object);
    }

    public static ResultDto success(Integer code, String msg, Object object, Integer count){
        return new ResultDto(code, msg, object , count);
    }

    public static ResultDto error(Integer code, String msg){
        return new ResultDto(code, msg);
    }
}
